import request from '@/utils/request'

// 查询采购询价单列表
export function listRfq(query) {
  return request({
    url: '/crm/rfq/list',
    method: 'get',
    params: query
  })
}

// 查询采购询价单详细
export function getRfq(id) {
  return request({
    url: '/crm/rfq/' + id,
    method: 'get'
  })
}

// 新增采购询价单
export function addRfq(data) {
  return request({
    url: '/crm/rfq',
    method: 'post',
    data: data
  })
}

// 修改采购询价单
export function updateRfq(data) {
  return request({
    url: '/crm/rfq',
    method: 'put',
    data: data
  })
}

// 删除采购询价单
export function delRfq(id) {
  return request({
    url: '/crm/rfq/' + id,
    method: 'delete'
  })
}
